<template>
    <div class="mc">
        <div class="ma1">
            查询范围不可超过一年
        </div>
        <van-datetime-picker
        v-model="currentDate"
        type="date"
        title="选择年月日"
        :min-date="minDate"
        :max-date="maxDate"
        @confirm="srue"
        @cancel="cancel"
        class="mc_1"
        />
    </div>
</template>
<script>
export default {
    name : 'TimeView',
    data(){
        return{
            
        }
    },
    methods:{
        srue(){
            this.$emit('xiugai')
        },
        cancel(){
            this.$emit('xiugai',0)
        }
    }
}
</script>
<style scoped>
.mc{
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 99;
}
.mc_1{
    width: 100%;
    position: fixed;
    bottom: 0;
    border-top-right-radius: 15px;
    border-top-left-radius:15px ;
}
.ma1{
    width: 200px;
    height: 60px;
    font-size: 15px;
    background-color: rgba(0,0,0,0.6);
    text-align: center;
    line-height: 60px;
    color: #f4ffff;
    position: fixed;
    top: 50%;
    z-index: 1;
    left: 24%;
}

</style>